package com.example;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/request")
@RestController //标识当前类是一个请求处理类
public class RequestController {
    @RequestMapping("/hello")//标识请求路径
    public String say(){
        return "hello,Spring mvc";
    }
}
